/** When your routing table is too long, you can split it into small modules**/

import Layout from "@/layout/index.vue";

const orderRouter = {
	path: '/order',
	component: Layout,
	redirect: 'noRedirect',
	name: 'oreder',
	meta: {
		title: '预约订单',
		icon: 's-data'
	},
	children: [{
			path: 'allOrder',
			component: () => import('@/views/orders/allOrder.vue'),
			name: 'allOrder',
			meta: {
				title: '全部订单',
				noCache: true
			}
		},
		{
			path: 'completeOrder',
			component: () => import('@/views/orders/completeOrder.vue'),
			name: 'completeOrder',
			meta: {
				title: '已完成订单',
				noCache: true
			}
		},
		{
			path: 'awaitOrder',
			component: () => import('@/views/orders/awaitOrder.vue'),
			name: 'awaitOrder',
			meta: {
				title: '待确认订单',
				noCache: true
			}
		},
		{
			path: 'cancelOrder',
			component: () => import('@/views/orders/cancelOrder.vue'),
			name: 'cancelOrder',
			meta: {
				title: '已取消订单',
				noCache: true
			}
		},
	]
}

export default orderRouter